package com.college.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.college.domain.Student;
import com.college.facade.impl.StudentRegistrationFacadeImpl;

public class StudentRegistrationController {

	@Autowired
	StudentRegistrationFacadeImpl studentRegistrationFacade;
	
	@RequestMapping("studentPersist")
	public ModelAndView studentPersist(HttpServletRequest request,
	HttpServletResponse response) throws Exception {
		
		Student student=new Student();
		
		studentRegistrationFacade.studentRegistration(request,student);
		
		return new ModelAndView("home");

	}
}
